package com.wanlian.netty.model;

import com.wanlian.json.JsonStringUtil;

public class Address {
    private String ip;
    private String protol;
    private int port;
    private String publickey;
    private boolean bRouter;
    private String version;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getProtol() {
        return protol;
    }

    public void setProtol(String protol) {
        this.protol = protol;
    }

    public int getPort() {
        return port;
    }

    public String getPublickey() {
        return publickey;
    }

    public void setPublickey(String publickey) {
        this.publickey = publickey;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String toString() {
        return JsonStringUtil.writeValueAsString(this);
    }

    public boolean isbRouter() {
        return bRouter;
    }

    public void setbRouter(boolean bRouter) {
        this.bRouter = bRouter;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}
